import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
const history = createWebHistory(import.meta.env.BASE_URL);

console.log("import.meta.env.BASE_URL:", import.meta.env.BASE_URL);
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/main-vite",
  },
  {
    path: "/main-vite",
    name: "home",
    component: () => import("../view/home/index.vue"),
  },
  {
    path: "/app-vite:page*",
    name: "vite",
    component: () => import("../view/vite.vue"),
  },
];
const router = createRouter({
  history,
  routes,
});
export default router;
